package thread.ch01;

import thread.annotation.GuardBy;
import thread.annotation.ThreadSafe;

@ThreadSafe
public class Sequence {

	@GuardBy("this")
	private int value;

	public synchronized int getValue() {
		return value++;
	}
}
